﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartAgricultureService.Tables
{
    [Table("Report")]
    public class ReportEntry
    {
        [Key] 
        [MaxLength(50)]
        public string Id { get; set; }
        [Required] 
        [MaxLength(50)]
        public string AreaId { get; set; }
        [MaxLength(10)]
        public string AreaCode { get; set; }
        public DateTime ReportDate { get; set; }
        public virtual AreaEntry Area { get; set; }
        public virtual ICollection<ReportDetailEntry> ReportDetails { get; set; }
    }
}